package com.example.lastwork.service;


import com.example.lastwork.common.service.LogicService;
import com.example.lastwork.dao.UserDao;
import com.example.lastwork.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends LogicService<UserDao, User, Long> {
    public UserService(@Autowired UserDao dao){
        super(dao);
    }

    public User getUserByIdByPassword(Long userId, String password){
        return getDAO().getUserByIdByPassword(userId, password);
    }
}
